higher-order functions with arrow functions